<template>
<div>
  <h3>录取名单</h3>

  <el-card class="box-card">
    <el-row :gutter="20">
      <el-col :span="7">
        <el-input placeholder="请输入内容"
                  v-model="quertInfo.searchText" clearable
                  @clear="getlist">
          <el-button slot="append" icon="el-icon-search"
                     @click="getlist">
          </el-button>
        </el-input>
      </el-col>
      <el-col :span="4">
      </el-col>
    </el-row>

    <el-table :data = "list">
      <el-table-column type="index" label="序号"></el-table-column>
      <el-table-column label="考号" prop="ENo"></el-table-column>
      <el-table-column label="专业" prop="Department"></el-table-column>
      <el-table-column label="初试成绩" prop="FirstGrade"></el-table-column>
      <el-table-column label="复试成绩" prop="SecondGrade"></el-table-column>
    </el-table>
  </el-card>

</div>
</template>

<script>
export default {
  data() {
    return {
      quertInfo: {
        searchText: '',
        page: 1,
        //当前每页显示多少条数据
        limit: 50
      },
      list: [],
      total: 0,
      addDialogVisable:false,

      addForm:{
        ENo: '',
        Department: '',
        FirstGrade: '',
        SecondGrade: ''
      },
      editdialogVisible: false,
      editForm: {

      }
    }
  },

  created() {
    this.getlist()
  },

  methods:{
    addDialogClosed() {
      this.$refs.addFormRed.resetFields()
    },

    async getlist() {
      const {data: res} = await this.$http.get('admission', {params: this.quertInfo})
      this.total = res.data.total
      this.list = res.data.value
      console.log(res)
    },
  }
}
</script>

<style lang ="less" scoped>

</style>
